package com.dsbj.starter.redis.config;

import com.dsbj.starter.redis.utils.RedisHelper;
import org.springframework.cache.annotation.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.RedisTemplate;


/**
 * Created with idea
 * Date: 2017/12/19 0019
 * Time: 10:51
 * @author lvdong
 */
@Configuration
public class DsbjRedisConfig {

    @Bean
    public RedisHelper redisHelper(RedisTemplate redisTemplate) {
        RedisHelper redisHelper = new RedisHelper();
        redisHelper.setRedisTemplate(redisTemplate);
        return redisHelper;
    }
}
